<template>
    <!-- swipe -->
    <van-swipe class="my-swipe" :autoplay=autoplay indicator-color="white">
      <van-swipe-item v-for="item in lunbolist" :key="item.id">
        <img v-lazy="item.img || item.src" alt="">
      </van-swipe-item>
    </van-swipe>

</template>
<script>
export default {
  props:{
    lunbolist:{
      type:Array,
      default () {
        return []
      }
    },
    autoplay:{
      type:Number,
      default:0
    }
  }
}
</script>

<style lang="scss">
.my-swipe{
    height: 200px;
    text-align: center;
    img{
      height: 100%;
    }
  }
  .van-grid-item__icon{
      font-size: 40px;
    }
</style>
